/**
 * f-club.cn
 * Copyright (c) 2009-2012 All Rights Reserved.
 */
package com.mtoolkit.socket;

import com.mtoolkit.socket.SocketRequest;
import com.mtoolkit.socket.SocketResponse;
import com.mtoolkit.socket.server.NioServerEventAdapter;
import com.mtoolkit.util.LogUtil;

/**
 * 
 * @author michael
 * @version $Id: LogHandler.java 79 2012-11-05 12:58:10Z xishizhang@gmail.com $
 */
public class LogHandler extends NioServerEventAdapter {

    private static final LogUtil LOGEGR = LogUtil.getLogger(LogHandler.class);
    
    @Override
    public void onAccept() {
        LOGEGR.debug("onAccept ...");
    }

    @Override
    public void onAccepted(SocketRequest request) {
        LOGEGR.debug("onAccepted " + request);
    }
    
    @Override
    public void onReaded(SocketRequest request) {
        LOGEGR.debug("onReaded ...");
    }
    
    @Override
    public void onWrite(SocketRequest request, SocketResponse response) {
        LOGEGR.debug("onWrite ...");
    }

    @Override
    public void onClosed(SocketRequest request) {
        LOGEGR.debug("onClosed ...");
    }

    @Override
    public void onError(Exception exception) {
        LOGEGR.debug("onAccept ...");
    }
    
}
